<?php
/**
 * Created by JetBrains PhpStorm.
 * User: sergei
 * Date: 26.03.13
 * Time: 23:12
 * To change this template use File | Settings | File Templates.
 */

namespace Entity\Repository;


use Doctrine\ORM\EntityRepository;

class GroupRepository extends EntityRepository
{
    public function getAllWithoutNames(array $names)
    {
        $qb = $this->createQueryBuilder("g");
        $qb->where($qb->expr()->notIn("g.name", $names));
        return $qb->getQuery()->getResult();

    }
}